#ifndef SHARED_VALUES_H
#define SHARED_VALUES_H

#include <Arduino.h>
#include "dev/stepper.h"
#include <WiFiClient.h>
#include <WebServer.h>

const char* global_ssid; // your network SSID (name)
const char* global_password; // your network password (use for WPA, or use as key for WEP)

const char* default_ap_ssid = "UMEKO_MOTOR"; // 默认热点名称
const char* default_ap_password = "12345678";  // 默认热点密码

// 定义电机的IO管脚
const uint8_t PUL_PIN = 0; // 脉冲管脚
const uint8_t DIR_PIN = 1; // 方向管脚
const uint8_t EN_PIN = 2;  // 启用管脚
const uint8_t LED_PIN = 3;  // led管脚

StepMotor* stepper = nullptr; // 定义全局StepMotor对象指针
extern StepMotor* stepper; // 声明全局StepMotor对象指针

WebServer *server = nullptr; // 创建 Web 服务器实例
extern WebServer* server; // 声明全局StepMotor对象指针
#endif